<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class UpdatedAkbusMaterialOutDetailTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('akbus_material_out_detail', function (Blueprint $table) {
            $table->string('line')->nullable()->comment('线路');
            $table->string('bus_num')->nullable()->comment('车号');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('akbus_material_out_detail', function (Blueprint $table) {
            $table->dropColumn('line');
            $table->dropColumn('bus_num');
        });
    }
}
